﻿using UnityEngine;
using System.Collections;

public class DelayShowTargetGameObject : MonoBehaviour
{
	public GameObject go;

	public float delayTime = 1;

	void OnEnable()
	{
		this.go.SetActive (false);
		Invoke ("Show", delayTime);
	}


	void Show () {
		this.go.SetActive (true);
	}

	void OnDisable()
	{
		this.CancelInvoke ();
	}

	void OnDestroy()
	{
		this.CancelInvoke ();
	}
}

